solution "FallenGameEngine"
	configurations { "Debug", "Release" }
	location "build"
	
	project "fge"
		kind "StaticLib"
		language "C++"
		files { "source/*.cpp", "source/*.hpp", "source/**/*.c", "source/**/*.cpp", "source/**/*.h", "source/**/*.hpp" }
		excludes { "source/main.cpp", "source/TestScreen.hpp" }

		configuration "macosx"
			files { "source/SDLMain.m" }		

		configuration "vs2008 or vs2010"
			defines { "WIN32" }
		
		configuration "Debug"
			defines { "DEBUG" }
			flags { "Symbols" }
			targetdir "build/Debug/lib"
			
		configuration "Release"
			defines { "NDEBUG" }
			flags { "Optimize" }
			targetdir "build/Release/lib"
			
	project "fge_test"
		kind "ConsoleApp"
		language "C++"
		files { "source/main.cpp", "source/TestScreen.hpp" }
		links { "fge" }
		
		configuration "vs2008 or vs2010"
			defines { "WIN32" }
			libdirs { "source/sdl", "source/glew" }
			links { "glew32", "opengl32", "SDL", "SDLmain", "SDL_mixer" }
			postbuildcommands { "xcopy /d /s /y ..\\assets\\*.* $(OutDir)\\assets\\",
				"xcopy /d /s /y ..\\source\\\sdl\\*.dll $(OutDir)",
				"xcopy /d /s /y ..\\source\\\glew\\*.dll $(OutDir)" }

		configuration "macosx"
			linkoptions { "-framework OpenGL", "-framework SDL", "-framework SDL_mixer",
				"-framework CoreFoundation", "-framework Foundation", "-framework Cocoa" }
				
		configuration "Debug"
			defines { "DEBUG" }
			flags { "Symbols" }
			targetdir "build/Debug/bin"			
			
		configuration "Release"
			defines { "NDEBUG" }
			flags { "Optimize" }
			targetdir "build/Release/bin"